module.exports = (sequelize, DataTypes) => {
    return sequelize.define('Device', {
      device_name: DataTypes.STRING,
      device_type: DataTypes.ENUM('light', 'thermostat', 'security'),
      status: DataTypes.JSON
    }, {
      defaultScope: {
        include: [{ model: DeviceGroup }]
      }
    });
  };